<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./js/vue.js"></script>
</head>
<body>
    <div id="app">
        <input type="text" v-model.lazy.number="age">
        <input type="text" v-model.trim="msg">
        <hr>

        性别：<input type="radio" v-model="sex" value="male">男
             <input type="radio" v-model="sex" value="female">女
        <hr>

        爱好：<input type="checkbox" v-model="hobbies" value="eat">吃饭
            <input type="checkbox" v-model="hobbies" value="sleep">睡觉
            <input type="checkbox" v-model="hobbies" value="doudou">打豆豆
        <hr>

        学历：
            <select v-model.number="degree">
                <option value="0">--请选择学历--</option>
                <option value="1">大专</option>
                <option value="2">本科</option>
                <option value="3">研究生</option>
            </select>
    </div>
</body>
<script>
    var vm = new Vue({
        el:'#app',
        data:{ 
          age: 18,
          msg:'hello',
          sex:'male',
          hobbies:[],
          degree:0,
        },
    })
</script>
</html>